From 7f2726b6264f1bf8949c6c18fb261abc33d9112b Mon Sep 17 00:00:00 2001 From: George Dunlap Date: Fri, 20 May 2011 18:20:09 +0100 Subject: [PATCH] tools: Fix build failure with gcc 4.4.3-4ubuntu5 c/s 23253:a3db6b91f32d causes build failure with gcc 4.4.3-4ubuntu5, as the compiler can't figure out that the value returned is always a string literal. Signed-off-by: George Dunlap --- tools/libxl/libxl_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 952cb7d001..47a51c8708 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -773,7 +773,7 @@ int libxl__create_device_model(libxl__gc *gc, path = libxl__sprintf(gc, "/local/domain/%d/hvmloader", info->domid); xs_mkdir(ctx->xsh, XBT_NULL, path); libxl__xs_write(gc, XBT_NULL, libxl__sprintf(gc, "%s/bios", path), - libxl__domain_bios(gc, info)); + "%s", libxl__domain_bios(gc, info)); path = libxl__sprintf(gc, "/local/domain/0/device-model/%d", info->domid); xs_mkdir(ctx->xsh, XBT_NULL, path); -- 2.30.2